﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sonic.Framework.Interfaces;
using System.IO;

namespace Sonic.Framework.Site
{
    public class Exclusion : IExclusion
    {
        public List<FileInfo> FilesToExclude
        {
            get;
            set;
        }

        public Enums.ExclusionType ExclusionType
        {
            get;
            set;
        }

        public string ProcessorToolDirectiveName
        {
            get;
            set;
        }

        public Exclusion()
        {
            FilesToExclude = new List<FileInfo>();
        }

        public Exclusion(FileInfo file, Enums.ExclusionType exclusionType, string processorToolDirectiveName)
        {
            this.FilesToExclude = new List<FileInfo>();
            this.FilesToExclude.Add(file);
            this.ProcessorToolDirectiveName = processorToolDirectiveName;
            this.ExclusionType = exclusionType;
        }

        public Exclusion(List<FileInfo> files, Enums.ExclusionType exclusionType, string processorToolDirectiveName)
        {
            this.FilesToExclude = new List<FileInfo>();
            this.FilesToExclude.AddRange(files);
            this.ProcessorToolDirectiveName = processorToolDirectiveName;
            this.ExclusionType = exclusionType;
        }
    }
}
